package com.bamboo.tool.enums;

import lombok.Getter;

/**
 * @author bamboo
 * Date 2022/9/13 9:50
 * Description ContentType 类型枚举
 */
@Getter
public enum ContentType {


    HTML("text/html", "HTML格式"),
    PLAIN("text/plain", "文本格式"),
    XML("text/xml", "XML格式"),
    GIF("image/gif", "gif图片格式"),
    JPG("image/jpeg", "jpg图片格式"),
    PNG("image/png", "png图片格式"),
    XHTML("application/xhtml+xm", "XHTML格式"),
    XML_DATA("application/xml", "XML数据格式"),
    ATOM_XML_DATA("application/atom+xml", "Atom XML聚合格式"),
    JSON_DATA("application/json", "json数据格式"),
    PDF("application/pdf", "pdf格式"),
    MSWORD("application/msword", "word文档格式"),
    OCTET_STREAM("application/octet-stream", "pdf格式"),
    FORM("application/x-www-form-urlencoded", "表单默认提交的格式key-value"),
    FORM_DATA("multipart/form-data", "文件上传格式"),

    ;

    private final String code;
    private final String desc;

    ContentType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
